<template>
    <div>我是MyCom组件{{message}}---我是名字是{{name}}---我的年龄是{{age}}
    <img src="../assets/logo.png" alt="">
    <img src="@/assets/logo.png" alt="">
    <router-view></router-view>
    </div>
</template>
<script>
export default {
    data:function(){
        return{
            message:"的数据",
            name:'',
            age:''
        }
    },
    created(){
       console.log(this.$route.query);
       this.name=this.$route.query.name;
        this.age=this.$route.query.age;
    }
}
</script>